You are here: Symbol Reference > Dew Namespace > Dew.Signal Namespace > Dew.Signal.Units Namespace > Classes > SignalUtils Class > SignalUtils Methods > SignalUtils.NearestMaximum Method
Dew Signal for .NET
ContentsIndexHome
PreviousUpNext
SignalUtils.NearestMaximum Method

Find the nearest peak.

Syntax
C#
Visual Basic
public static bool NearestMaximum([In] TVec Data, ref int Index);

Converge to the nearest peak of Data, if the start position is at Data[Index]. Returns the position of the found peak in Index. The function returns True if a True maximum was found: Value[i-1] < Max[i] > Value[i+1]. The first and last sample can not be True maximums.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!